{% include "../public/min-header.html" %}
<div class="wrapper">
	{% include "../public/breadcrumb.html" %}
	<section class="content">
       <div class="row">
       		<div class="col-xs-12">
	       		<div class="box">
	             	<div class="box-header">
		               	<nav class="navbar navbar-default">	     
					        <div class="collapse navbar-collapse">
					          <form class="navbar-form form-inline" action="{{helper.pathFor('adadin')}}" method="get">
					            <div class="form-group">
					              	<input type="text" name="keywords" class="form-control" placeholder="搜索" value="{{keyword}}">
					            </div>
					            <button type="submit" class="btn btn-default">提交</button>
					            <div class="form-group pull-right">
						            <a href="{{helper.pathFor('adadif')}}" class="btn btn-primary pull-right"><i class="fa fa-plus"></i>添加管理员</a>
					            </div>		          
					          </form>		
					      	</div>
		    			</nav>  
	             	</div>	             
	             	<div class="box-body">	               
		           		<div class="row">
			            	<div class="col-sm-12">
				              	<table id="list-table" class="table table-bordered table-striped dataTable">
				                 	<thead>
					                   <tr role="row">
						                   <th>ID</th>
						                   <th>用户名</th>
						                   <th>所属角色</th>
						                   <th>Email地址</th>
						                   <th>加入时间</th>
						                   <th>操作</th>
					                   </tr>
				                 	</thead>
									<tbody>
									  	{% for vo in lists%}
									  	<tr role="row" align="center">
					                     	<td>{{vo.admin_id}}</td>
					                     	<td>{{vo.user_name}}</td>
					                     	<td>{{vo.role}}</td>
					                     	<td>{{vo.email}}</td>
					                     	<td>{{vo.add_time}}</td>
					                     	<td>
					                      		<a class="btn btn-primary" href="{{helper.pathFor('adadif',{act:'edit',id:vo.admin_id})}}"><i class="fa fa-pencil"></i></a>
					                      		{% if vo.admin_id > 1 %}
					                      			<a class="btn btn-danger setRemove" href="javascript:void(0)" data-post-url="{{helper.pathFor('adcoset')}}" data-id="{{vo.admin_id}}" data-jump-url="{{helper.pathFor('adadin')}}" data-type="admin"><i class="fa fa-trash-o"></i></a>
										  		{% endif %}
											</td>
					                   	</tr>
					                  	{% endfor %}
				                   	</tbody>
				                 	<tfoot></tfoot>
				               	</table>	 
			               	</div>
			          	</div>
						{% include "../public/page.html" %}
	         		</div>
	        	</div>
       		</div>
       </div>
   </section>
</div>

{% include "../public/main-footer.html" %}